package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.mapper.UsersMapper;
import com.wanda.po.Users;
import com.wanda.po.UsersExample;
import com.wanda.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {
	@Autowired
	private UsersMapper usersMapper;

	public List<Users> findUserList(UsersExample usersExample) throws Exception {
		return usersMapper.selectByExample(usersExample);
	}

	public int insertSelective(Users user) throws Exception {
		int n=usersMapper.insertSelective(user);
		return n;
	}
	
	

}
